home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0009.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.5 KB  |  36 lines

  1.  
  2. > When I compile a program which has icons in memory, it works fine when 
  3. > compiling it to Amos window, but when I compile it working in cli and 
  4. > then try to run this program from cli a guru will appear.
  5. > Has anyone else found this same problem??
  6.  
  7. Yes, it is a known bug in the compiler.
  8.  
  9. > And is there any way to solve this problem?
  10.  
  11. Simplest is to save the icon bank to disk as a seperate file, and load it
  12. at the start of your program. More complex is to change the icon bank to a
  13. sprite bank compile it, then insert instructions to change it back to an
  14. icon bank before use!
  15.  
  16. To change the banks, you have to rename them (Use easylife Els Bank Name
  17. command, or poke the 8 character new name padded with spaces into address
  18. Start(BK)-8. Also, there is two 2 bits in the bank header that need changing,
  19. but I can't remember their address. Look at the bank header definitions in the
  20. appendix of the AMOSPro manual.
  21.  
  22.  
  23.  
  24. +-------------------------+------------------------------------+
  25. |                         |    _____                           |
  26. | PAUL HICKMAN            |   /     \   ON A HOT SUMMER NIGHT  |
  27. | (ph@doc.ic.ac.uk)       |  /  O O  \  WOULD YOU  OFFER YOUR  |
  28. | DEPARTMENT OF COMPUTING | |    _    | THROAT  TO  THE  WOLF  |
  29. | IMPERIAL COLLEGE LONDON |  \  / \  /  WITH THE RED  ROSES ?  |
  30. |                         |   \_____/                          |
  31. +-------------------------+------------------------------------+
  32. Machines: Amiga 500  WB1.3 - 1mb Memory - External Disk Drive.
  33.           Amiga 1200 WB3.0 - 6mb Memory - 200Mb Hard Disk.
  34.  
  35.  
  36.